home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 422_04 / interfac.src < prev    next >
Text File  |  1994-02-14  |  9KB  |  199 lines

  1. This help library contains information that may be needed when
  2. interfacing to various devices from the PC.
  3. >ASCII code chart
  4.                        Most Significant Digit
  5.         HEX||  0  |  1  |  2  |  3  |  4  |  5  |  6  |  7  |
  6.         ===++=====+=====+=====+=====+=====+=====+=====+=====+
  7.    L     0 || NUL | DLE |     |  0  |  @  |  P  |  `  |  p  |
  8.    e     1 || SOH | DC1 |  !  |  1  |  A  |  Q  |  a  |  q  |
  9.    a     2 || STX | DC2 |  "  |  2  |  B  |  R  |  b  |  r  |
  10.    s     3 || ETX | DC3 |  #  |  3  |  C  |  S  |  c  |  s  |
  11.    t     4 || EOT | DC4 |  $  |  4  |  D  |  T  |  d  |  t  |
  12.      D   5 || ENQ | NAK |  %  |  5  |  E  |  U  |  e  |  u  |
  13.    s i   6 || ACK | SYN |  &  |  6  |  F  |  V  |  f  |  v  |
  14.    i g   7 || BEL | ETB |  '  |  7  |  G  |  W  |  g  |  w  |
  15.    g i   8 || BS  | CAN |  (  |  8  |  H  |  X  |  h  |  x  |
  16.    n t   9 || HT  | EM  |  )  |  9  |  I  |  Y  |  i  |  y  |
  17.    i     A || LF  | SUB |  *  |  :  |  J  |  Z  |  j  |  z  |
  18.    f     B || VT  | ESC |  +  |  ;  |  K  |  [  |  k  |  {  |
  19.    i     C || FF  | FS  |  ,  |  <  |  L  |  \  |  l  |  |  |
  20.    c     D || CR  | GS  |  -  |  =  |  M  |  ]  |  m  |  }  |
  21.    a     E || SO  | RS  |  .  |  >  |  N  |  ^  |  n  |  ~  |
  22.    n     F || SI  | US  |  /  |  ?  |  O  |  _  |  o  | DEL |
  23.    t    ---++-----+-----+-----+-----+-----+-----+-----+-----+
  24. >Connections and Pinouts
  25. >>Game connector pin assignments
  26. 8   7   6   5   4   3   2   1
  27.  15  14  13  12  11  10   9
  28.  
  29. 1 Game1 +5V           9 Game2 +5V
  30. 2 Game1 switch 1     10 Game2 switch 1
  31. 3 Game1 X position   11 Game2 X position
  32. 4 Game1 Ground       12 Game2 Ground
  33. 5 Game1 Ground       13 Game2 Y position
  34. 6 Game1 Y position   14 Game2 Switch2
  35. 7 Game1 switch 2     15 No connection
  36. 8 No connection
  37.  
  38. Connector viewed from rear of PC.
  39. >>Keyboard connector pin assignments
  40. PC/AT DIN-5 connector
  41.       ___ ___
  42.      /   U   \     1 +Clock
  43.    /           \   2 +Data
  44.   |             |  3 -Reset
  45.   |  3       1  |  4 Ground
  46.    \  5     4  /   5 +5 Vdg
  47.      \   2   /
  48.        -----
  49.  
  50. PS/2 minature DIN-6 connector
  51.        __ __
  52.      / 6 U 5 \     1 Data
  53.    /           \   2 Reserved
  54.   |  4       3  |  3 Ground
  55.    \           /   4 +5 Vdc
  56.      \ 2   1 /     5 Clock
  57.        -----       6 Reserved
  58.  
  59. Connectors viewed from rear of PC
  60. >>Printer connector pin assignments
  61. 13  12  11  10   9   8   7   6   5   4   3   2   1
  62.   25  24  23  22  21  20  19  18  17  16  15  14
  63.  
  64.       1 -STROBE        * 10 -ACK
  65.       2 DATA 0         * 11 +BUSY
  66.       3 DATA 1         * 12 +PAPER OUT
  67.       4 DATA 2         * 13 +SELECT
  68.       5 DATA 3           14 -AUTO FD
  69.       6 DATA 4         * 15 -ERROR
  70.       7 DATA 5           16 -INIT
  71.       8 DATA 6           17 -SELECT INPUT
  72.       9 DATA 7        18-26 GROUND
  73.  
  74. Signals marked with '*' originate from the printer.
  75. Connector viewed from rear of PC.
  76. >>Serial connector pin assignments
  77.                   PC (25 pin)                              AT (9 pin)
  78. 1   2   3   4   5   6   7   8   9  10  11  12  13      1   2   3   4   5
  79.  14  15  16  17  18  19  20  21  22  23  24  25          6   7   8   9
  80.  
  81.     Signal name               Origin   25-Pin(PC)  9-Pin(AT)
  82.     --------------------------------------------------------
  83.     Protective Ground   (GND)   ---         1          1
  84.     Transmit Data       (TXD)   DTE         2          3
  85.     Receive Data        (RXD)   DCE         3          2
  86.     Request To Send     (RTS)   DTE         4          7
  87.     Clear To Send       (CTS)   DCE         5          8
  88.     Data Set Ready      (DSR)   DCE         6          6
  89.     Signal Ground       (GND)   ---         7          5
  90.     Data Carrier Detect (DCD)   DCE         8          1
  91.     Data Terminal Ready (DTR)   DTE        20          4
  92.     Ring Indicator      (RI )   DCE        22          9
  93.  
  94. Connectors viewed from rear of PC.
  95. >>Video connector pin assignments
  96. EGA/CGA/MDA Connector
  97.                         1 Ground         6 Secondary Green/Mono intensity
  98.  5   4   3   2   1      2 Secondary RED  7 Secondary Blue/Mono video
  99.    9   8   7   6        3 Red            8 Horizontal sync
  100.                         4 Green          9 Vertical sync
  101.                         5 Blue
  102.  
  103. VGA Connector
  104.                         1 Blue      6 Red GND      11 Monitor sense 0
  105.  5   4   3   2   1      2 Green     7 Green GND    12 Monitor sense 1
  106.   10   9   8   7   6    3 Red       8 Blue GND     13 Horisontal sync
  107. 15  14  13  12  11      4 Reserved  9 Keying plug  14 Vertical sync
  108.                         5 Ground   10 Ground       15 Reserved
  109.  
  110. Connectors viewed from rear of PC.
  111. >Hayes compatible modems
  112. This section contains information about the command set and features of
  113. a HAYES SMARTMODEM 2400. Most "hayes compatible" modems support at least
  114. this minimal command set.
  115. >>Commands
  116. All commands are preceeded by 'AT'.
  117. Entering 'A/' causes the last command to re-execute.
  118.  
  119. A     Go off-hook/answer mode        &C0-1  DCD: 0=On, 1=Control
  120. B0-1  Mode: 0=V.22 1=212A            &D0-3  DTR: Ignore, Cmd, Hgup, Reset
  121. Dnum  Dial number                    &F     Recall factory settings
  122. E0-1  Echo: 0=Disable 1=Enable       &G0-2  Guard tone: No, 550, 1800
  123. H0-1  Hook: 0=on-hook, 1=off         &J0-1  Jack: 0=RJ11/41/45 1=RJ12/13
  124. I0-2  Id: 0=ID, 1=Cksum, 2=test      &Q0-4  Mode: Async, Sync1/2/3/4
  125. L0-3  Spk vol: Low, Med, High        &R0-1  CTS: 0=Track RTS, 1=On
  126. M0-3  Spk: Off, Carr, On, No dial    &S0-1  DSR: 0=On, 1=Control
  127. O0-1  Go online: 1=+retrain          &T0-8  Test control
  128. Q0-1  Results: 0=Enable, 1=Disable   &V     View config, profs & numbers
  129. Sr=n  Set register 'r' to 'n'        &W0-1  Save current profile
  130. Sr?   Display register 'r'           &X0-1  Clock: Modem, Dte, Carrier
  131. V0-1  Results: 0=Numeric, 1=Text     &Y0-1  Set power-up profile
  132. X0-4  Set result code level          &Zn=x  Store phone number (0-3)
  133. Y0-1  Long space disconnect: 0=Disable, 1=Enable
  134. Z0-1  Reset and load profile
  135. >>Registers
  136. S0       Auto answer:                           0=off, after 1-255 rings
  137. S1       Ring count
  138. S2       Escape character:                      0-127
  139. S3       Return character:                      0-127
  140. S4       Line-feed character:                   0-127
  141. S5       Space character:                       0-32, 127
  142. S6       Wait time before blind dial:           2-255 sec.
  143. S7       Wait time for carrier/dial tone:       1-55 sec.
  144. S8       Duration of comma pause:               0-244 sec.
  145. S9       Carrier detect response time:          1-255 x 1/10 sec.
  146. S10      Delay between carrier lost and hangup: 1-255 x 1/10 sec.
  147. S11      Duration/Spacing of DTMF tones:        50-255 msec.
  148. S12      Escape sequence guard time:            20-255 x 1/50 sec.
  149. S13-24   Reserved
  150. S25      DTR change detect time:                0-255 x 1/100 sec.
  151. S26      RTS to CTS delay time:                 0-25 x 1/100 sec.
  152. >>Dial modifiers
  153. 0-9,#,*,A,B,C,D   Digits/tones for dialing
  154. P                 Select PULSE dialing
  155. T                 Select TONE dialing
  156. ,                 Pause
  157. !                 Flash hookswitch
  158. @                 Wait for silence
  159. W                 Wait for dialtone
  160. ;                 Return to command mode after dialing
  161. R                 Reverse mode (answer)
  162. S=n               Dial stored number (0-3)
  163. >>Result codes
  164. 0  OK             Command completed successfully
  165. 1  CONNECT        Connection at 0-300 BPS
  166. 2  RING           Ringing detected
  167. 3  NO CARRIER     Carrier not detected or lost
  168. 4  ERROR          Invalid command or parameters
  169. 5  CONNECT 1200   Connection at 1200 BPS
  170. 6  NO DIALTONE    No dialtone was detected
  171. 7  BUSY           Busy signal detected
  172. 8  NO ANSWER      No silence when dialing a system not providing dial tone
  173. 10 CONNECT 2400   Connection at 2400 BPS
  174.  
  175. X0 enables results 0-4
  176. X1 enables results 0-5, 10
  177. X2 enables results 0-6, 10
  178. X3 enables results 0-5, 7, 10
  179. X4 enables all result codes (default)
  180. >VT100 / ANSI terminal control codes
  181. ESC[nA     - Cursor UP               ESC#3 - Double height line (TOP)
  182. ESC[nB     - Cursor DOWN             ESC#4 - Double height line (BOTTOM)
  183. ESC[nC     - Cursor RIGHT